package _6funcs

func UseFunc3() {
	myFunc3 := Func3
	myFunc3(1, "a")

}

func Functional4() string {
	println("hello, functional 4")
	return "hello"
}

func Functional5(age int) {

}

// 方法作为变量进行赋值
var Abc = func() string {
	return "hello"
}

func UseFunctional4() {
	myFunc := Functional4
	myFunc()

	myFunc5 := Functional5
	myFunc5(18)
}

func Functional6() {
	fn := func() string {
		return "hello"
	}
	fn()
}

func functional7() func() string {
	return func() string {
		return "hello world"
	}
}

func Functional8() {
	fn := func() string {
		return "hello"
	}()
	println(fn)
}
